package com.shop.cereshop.app.tencent.im.callback;

import com.shop.cereshop.commons.tencent.im.model.callback.request.CallbackRequest;
import com.shop.cereshop.commons.tencent.im.model.callback.response.CallbackResponse;

/**
 * @description: 回调处理策略接口,定义处理不同类型回调的契约
 * @author zdd
 * @date 2025/9/11 10:20
 * @version 1.0
 */
public interface TimCallbackHandler<T extends CallbackRequest> {

    /**
     * 支持的命令类型，如 "C2C.CallbackBeforeSendMsg"
     */
    String getCommand();

    /**
     * 处理回调请求
     * @param request 回调请求对象
     * @return 回调响应对象
     */
    CallbackResponse handle(T request);

}
